package com.fqg.weblucene.lucene.utils;

import cn.hutool.setting.dialect.Props;

/**
 * Created by fqg05007 on 2021/8/29.
 */
public class ConfigUtils {
    private static Props props=null;
    static {
         props = new Props("config.properties");

    }
    public static String getKey(String key){
                     if(props==null){
                         props = new Props("config.properties");

                     }
        return props.getStr(key);

    }
    public  static String getLuceneDb(){
                    return getKey("lucene.db.path");
    }
    public  static String webPort(){
        return getKey("web.port");
    }
    public  static String webRoot(){
        return getKey("web.root");
    }
}
